#include <stdio.h>
#include <stdint.h>
#include <stdlib.h>
#include <unistd.h>
#include "TcpServer.h"
#include "Log.h"

int main (int argc, const char* argv[])
{   
    // if(argc < 3)
    // {
    //     printf("./a.out port path\n");
    //     return -1;
    // }
    argv[1] = "10001";
    argv[2] = "/home/sx-aozq/reactor_webServer/ReactorHttp-Cpp/";
    uint16_t port = (uint16_t)atoi(argv[1]);
    chdir(argv[2]);
    //启动服务器
    TcpServer *server = new TcpServer(port, 4);
    server->run();
    return 0;
}